package com.qfedu.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import java.util.ArrayList;

/**
 * 概述:
 *
 * @Author: Tbh
 * @Date: 2022/6/22 8:50
 */

@Configuration
@EnableSwagger2
public class SwaggerConfig {

    @Bean
    public Docket docket() {
        return new Docket(DocumentationType.SWAGGER_2).apiInfo(
                new ApiInfo("标题swagger接口文档","描述:文档具体信息","版本v2.0","http://www.baidu.com",
                        new Contact("steel","www.baidu.com","aa@qq.com"), "url","url",new ArrayList<>()
        ));
    }
}
